<template>
  <div class="header">
    <div class="left"><slot name="left">aa</slot></div>
    <div class="center">{{ title }}</div>
    <div class="right"><slot name="right">bb</slot></div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "顶部栏",
    },
  },
};
</script>
<style lang='less' scoped>
.header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
  border-bottom: 1px solid #ccc;
}
</style>
